package com.itmuch.cloud.service;

import com.itmuch.cloud.dto.UserDTO;
import com.itmuch.cloud.pojo.User;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface UserService {
    public User findById(@PathVariable Long id);

    String getOrder(@PathVariable("id") Long userId, @PathVariable("orderId") Long orderId);

    String search1(@RequestParam("name") String name, @RequestParam("age") Integer age, @RequestParam("size") Integer size);

    String search2(@RequestParam Map<String, Object> params);

    String createUser(@RequestBody UserDTO user);

    String uploadFile(@RequestPart("file") MultipartFile file, @RequestPart("description") String description);
}
